package com.hxzy.config;

import com.hxzy.controller.DeptController;
import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wzm
 * @create 2024-03-13 10:31
 * project_name:JavaWeb2401
 * @Description
 */
//注入配置第三方bean
@Configuration
public class BeanConfig {
    @Bean  //将当前方法的返回值对象交给IOC容器管理，称为ioc容器的bean 默认是方法名 可以执行name或value
    public SAXReader sAXReader(DeptController deptController){
        //需要第三方bean对象
        return  new SAXReader();
    }
}
